from pyecharts import Pie

attr =['海洋公园', '露露', '赵丽颖', '吉列', '惋惜', 'DR钻戒', 'TFBOY', 'OLAY', '公交车', '交警', '杨洋', '狗狗', '西班牙', '赵丽颖', '健忘症老爸', '杨幂 ', '2016金投赏', 'I DO', '百事可乐', '全心为你', '洪欣说', '调音师']

v1 = [657, 2183, 550, 650, 374, 1050, 3008, 16, 909, 590, 515, 375, 590, 378, 75, 280, 1088, 178, 350, 129, 159, 3]
pie = Pie("21条微博词频分析", title_pos='left')
pie.add(
    "",
    attr,
    v1,
    radius=[40, 75],
    label_text_color=None,
    is_label_show=True,
    legend_orient="vertical",
    legend_pos="right",
)
pie.render()
